/*
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements.  See the NOTICE file
distributed with this work for additional information
regarding copyright ownership.  The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License.  You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied.  See the License for the
specific language governing permissions and limitations
under the License.
 */
package td.client.view;

import td.client.presenter.handlers.DetailUiHandlers;

import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.Hyperlink;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.Widget;
import com.google.inject.Inject;

/**
 * @author Artem Shamsutdinov
 * 
 */
public class DetailView extends AbstractViewWithUiHandlers<DetailUiHandlers>
		implements DetailUiHandlers.MyView {

	public interface Binder extends UiBinder<Widget, DetailView> {
	}

	@UiField
	Label topic;
	@UiField
	Button tags;
	@UiField
	Label title;
	@UiField
	Hyperlink thinker;
	@UiField
	Label synopsis;
	@UiField
	Label thoughtBody;
	@UiField
	Label numReads;
	@UiField
	Button references;
	@UiField
	Button referencedBy;

	@Inject
	public DetailView(final Binder binder) {
		widget = binder.createAndBindUi(this);
	}

	public Label getTopic() {
		return topic;
	}

	public Label getTitle() {
		return title;
	}

	public Hyperlink getThinker() {
		return thinker;
	}

	public Label getSynopsis() {
		return synopsis;
	}

	public Label getThoughtBody() {
		return thoughtBody;
	}

	public Button getTags() {
		return tags;
	}

	public Label getNumReads() {
		return numReads;
	}

	public Button getReferences() {
		return references;
	}

	public Button getReferencedBy() {
		return referencedBy;
	}

}
